//天气
(function(T, h, i, n, k, P, a, g, e) { g = function() { P = h.createElement(i);
	a = h.getElementsByTagName(i)[0];
	P.src = k;
	P.charset = "utf-8";
	P.async = 1;
	a.parentNode.insertBefore(P, a) };
T["ThinkPageWeatherWidgetObject"] = n;
T[n] || (T[n] = function() {
	(T[n].q = T[n].q || []).push(arguments) });
T[n].l = +new Date(); if(T.attachEvent) { T.attachEvent("onload", g) } else { T.addEventListener("load", g, false) } }(window, document, "script", "tpwidget", "//widget.thinkpage.cn/widget/chameleon.js"))

tpwidget("init", {
	"flavor": "slim",
	"location": "WX4FBXXFKE4F",
	"geolocation": "enabled",
	"language": "zh-chs",
	"unit": "c",
	"theme": "white",
	"container": "tp-weather-widget",
	"bubble": "enabled",
	"alarmType": "badge",
	"uid": "UC3CD28B99",
	"hash": "0826acba394cf359015dd02b6e1ad168"
});
tpwidget("show");

// 美洽客服
(function(m, ei, q, i, a, j, s) {
	m[i] = m[i] || function() {
			(m[i].a = m[i].a || []).push(arguments)
	};
	j = ei.createElement(q),
			s = ei.getElementsByTagName(q)[0];
	j.async = true;
	j.charset = 'UTF-8';
	j.src = 'https://static.meiqia.com/dist/meiqia.js?_=t';
	s.parentNode.insertBefore(j, s);
})(window, document, 'script', '_MEIQIA');
_MEIQIA('entId', 24754);
_MEIQIA('manualInit');
_MEIQIA('withoutBtn');
_MEIQIA('allSet', showContactService);
function showContactService(){
	meiqia_is_init = 1;
	_MEIQIA('showPanel');
}

//返回顶部
function gotoTop(min_height) {
	min_height ? min_height = min_height : min_height = 600;
	$(window).scroll(function() {
		var s = $(window).scrollTop();
		if(s > min_height) {
			$("#gotoTop").fadeIn(100);
		} else {
			$("#gotoTop").fadeOut(200);
		};
	});
};
gotoTop();